BehaviorSignal class¶
Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]
Defined in
Namespace: ReactiveUI.Primitives.Signals
Assembly: ReactiveUI.Primitives.Core.dll
Full name: ReactiveUI.Primitives.Signals.BehaviorSignal<T>
Modifiers: public sealed
Summary¶
A signal that replays its most recent value to new subscribers.
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Class hierarchy
classDiagram
class BehaviorSignal~T~
class ISignal~T~ {
<>
}
ISignal~T~ <|.. BehaviorSignal~T~
class ISignal~T, T~ {
<>
}
ISignal~T, T~ <|.. BehaviorSignal~T~
class IObserver~T~ {
<>
}
IObserver~T~ <|.. BehaviorSignal~T~
class IObservable~T~ {
<>
}
IObservable~T~ <|.. BehaviorSignal~T~
class IsDisposed {
<>
}
IsDisposed <|.. BehaviorSignal~T~
class IDisposable {
<>
}
IDisposable <|.. BehaviorSignal~T~
class IWitnessRemovable~T~ {
<>
}
IWitnessRemovable~T~ <|.. BehaviorSignal~T~
Implements: ISignalIWitnessRemovable<T>
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [BehaviorSignal](# class. |
Properties¶
| Name | Summary |
|---|---|
| Value | Gets the current value or throws an exception. |
| HasObservers | Gets a value indicating whether this instance has observers. |
| IsDisposed | Gets a value indicating whether this instance is disposed. |
Methods¶
| Name | Summary |
|---|---|
| TryGetValue | Tries to get the current value or throws an exception. |
| OnCompleted | Notifies all subscribed observers about the end of the sequence. |
| OnError | Notifies all subscribed observers about the exception. |
| OnNext | Notifies all subscribed observers about the arrival of the specified element in the sequence. |
| Subscribe | Subscribes an observer to the subject. |
| Dispose | Releases unmanaged and - optionally - managed resources. |